package com.haixiaoke.flat.maintenance.controller;

import com.haixiaoke.auth.AuthCheck;
import com.haixiaoke.saas.common.annotation.RepeatSubmit;
import com.haixiaoke.saas.common.annotation.TenantScope;
import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.common.core.page.TableDataInfo;
import com.haixiaoke.saas.common.tenant.TenantContext;
import com.haixiaoke.saas.common.utils.poi.ExcelUtil;
import com.haixiaoke.saas.maintenance.domain.MaintenanceItem;
import com.haixiaoke.saas.maintenance.service.IMaintenanceItemService;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;

/**
 * 维修项目信息Controller
 *
 * @author xiaolong
 * @date 2024-09-11
 */
@RestController
@RequestMapping("/front/flat/maintenance/item")
public class FlatMaintenanceItemController extends BaseController {
    @Autowired
    private IMaintenanceItemService maintenanceItemService;


    /**
     * 根据楼盘id查询维修项目信息和公开信息
     */
    @GetMapping("/Info")
    @AuthCheck
    public AjaxResult Info(MaintenanceItem maintenanceItem) {
        return success(maintenanceItemService.selectMaintenanceItemInfo(maintenanceItem));
    }

}
